package com.tian.manager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.crazycake.shiro.AuthCachePrincipal;
/**
 * <p>
 * 
 * </p>
 *
 * @author tian
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysManager对象", description="")
public class SysManager implements Serializable,AuthCachePrincipal{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "manager_id", type = IdType.ID_WORKER_STR)
    private String managerId;

    @ApiModelProperty(value = "用户名")
    private String managerName;

    @ApiModelProperty(value = "密码")
    private String managerPwd;

    @ApiModelProperty(value = "状态：1启用，0禁用")
    private Boolean state;

    @ApiModelProperty(value = "1：删除 0未删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "更新时间")
    private Date gmtModified;

    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;


    @Override
    public String getAuthCacheKey() {
        return null;
    }
}
